package top.csmcool.musicapi.model.playlist;

/*
 * @description
 * @date 2025/1/30
 * @author shijin
 * @version 1.0
 */

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PlayListRequest {

    // 页面
    private Integer page = 0;

    // 大小
    private Integer size = 100;

    public Integer getStart() {
        return this.page * this.size;
    }

    public Integer getEnd() {
        return (this.page + 1) * this.size;
    }
}
